package dahuiji.common.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

public class Line {
	private Long id;
	private Long userId;// 用户id
	private String fromCity;// 出发城市
	private String toCity;// 目的城市
	private short price;// 检测价格
	private Date fDate;// 出发时间
	private Date toDate;// 如果是双程是到是什么时间段
	private short status;// 0表示ok，1表示错误,过时了就是错误的
	private short tpye;// 0表示单程，1表示双程
	private short flag;//0表示已经发送多通知，1表示没有发送过
	public Line() {

	}

	public Line(Long userId, String fromCity, String toCity, short price,
			Date fDate, Date toDate, short status, short tpye,short flag) {
		this.userId = userId;
		this.fromCity = fromCity;
		this.toCity = toCity;
		this.price = price;
		this.fDate = fDate;
		this.toDate = toDate;
		this.status = status;
		this.tpye = tpye;
		this.flag=flag;
	}
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getFromCity() {
		return fromCity;
	}

	public void setFromCity(String fromCity) {
		this.fromCity = fromCity;
	}

	public String getToCity() {
		return toCity;
	}

	public void setToCity(String toCity) {
		this.toCity = toCity;
	}

	public short getPrice() {
		return price;
	}

	public void setPrice(short price) {
		this.price = price;
	}

	public Date getfDate() {
		return fDate;
	}

	public void setfDate(Date fDate) {
		this.fDate = fDate;
	}

	public Date getToDate() {
		return toDate;
	}

	public void setToDate(Date toDate) {
		this.toDate = toDate;
	}

	public short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}

	public short getTpye() {
		return tpye;
	}

	public void setTpye(short tpye) {
		this.tpye = tpye;
	}

	public short getFlag() {
		return flag;
	}

	public void setFlag(short flag) {
		this.flag = flag;
	}

}
